package BryantChad.LunchTimeScoreCard;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.*;

public class LunchTimeScoreCardActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final Button btnNewGame = (Button) findViewById(R.id.btnNewGame);
        btnNewGame.setOnClickListener(btnNewGameClick);

    }
    
    private View.OnClickListener btnNewGameClick = new View.OnClickListener() {
    	@Override
		public void onClick(View v)  {
            // Perform action on clicks
    		Intent myIntent = new Intent(LunchTimeScoreCardActivity.this, CreateNewGameActivity.class);
    		
    		myIntent.putExtra("game", new Game());
    		
    		LunchTimeScoreCardActivity.this.startActivity(myIntent);
        }
	};
	
}

